import 'dart:convert';
class HxhBandCardBean {
  late int code;
  late String msg;
  late Data result;
  HxhBandCardBean({required this.code, required this.msg, required this.result});

  HxhBandCardBean.fromJson(Map<String, dynamic> jsonMap) {
    code = jsonMap['code'];
    msg = jsonMap['msg'];
    String string = jsonMap['data'];
    Map<String, dynamic> map = json.decode(string); // 使用jsonDecode函数进行解析
    result = (jsonMap['data'] != null ? Data.fromJson(map) : null)!;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = code;
    data['msg'] = msg;
    if (result != null) {
      data['data'] = result.toJson();
    }
    return data;
  }
}

class Data {
  late String orderNo;
  late String url;
  Data({required this.orderNo, required this.url});

  Data.fromJson(Map<String, dynamic> json) {
    orderNo = json['orderNo'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['orderNo'] = this.orderNo;
    data['url'] = this.url;
    return data;
  }
}
